package com.glsc.ngateway.common.api.platform.dto.it.networkassets;

import cn.hutool.core.annotation.Alias;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.glsc.ngateway.common.api.common.dto.BaseEntityDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * 接口状态
 * @author xuchang
 */
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class InterfaceStatusDto extends BaseEntityDto implements Serializable {

    @Alias(value = "主机")
    @ApiModelProperty(value = "主机")
    private String host;

    @Alias(value = "接口索引")
    @ApiModelProperty(value = "接口索引")
    private String ifIndex;

    @Alias(value = "接口名称")
    @ApiModelProperty(value = "接口名称")
    private String ifName;

    @Alias(value = "接口类型")
    @ApiModelProperty(value = "接口类型")
    private String ifType;

    @Alias(value = "接口速率")
    @ApiModelProperty(value = "接口速率")
    private String ifHighSpeed;

    @Alias(value = "接口状态")
    @ApiModelProperty(value = "接口状态")
    private String ifOperStatus;

    @Alias(value = "错误代码")
    @ApiModelProperty(value = "错误代码")
    private String ifErrDis;
}
